<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--<link rel="stylesheet" type="text/css" href="../public/css/styles.css" />-->
<link rel="stylesheet" type="text/css" href="../Public/css/styles.css" />
<title><?php echo ($title); ?></title>
<!--[if IE 6]>
	<script type="text/javascript" src="../Public/js/ie6-png.js"></script>
    <script language="javascript" type="text/javascript">
    	DD_belatedPNG.fix(".sideBar_two img,.li-item1,.li-item2,.li-item3,.li-item4,.li-item5,.main_top img");
    </script>
<![endif]-->
</head>

<body>
	<div class="headlogin">
		<div>
			<?php if($userName == ''): ?><a href="<?php echo ($nav_login); ?>">login</a>&nbsp;&nbsp;&nbsp;<a href="<?php echo ($nav_register); ?>">register</a>
			<?php else: ?>
				<a href="<?php echo ($nav_logout); ?>">logout</a><?php endif; ?>

		</div>
	</div>
   <div id="header">
        <h1 class="logo"><a href="__ROOT__/apps"><img alt="index.php" src="../Public/images/logo.gif" /></a></h1>
       <?php if($userName != ''): ?><div class="top_tips">
            <span class="tips_One">Current c2earn points</span>
            <span class="tips_zero"><?php echo ($userPoints); ?></span>
        </div><?php endif; ?>
        <div class="topBar">
            <span>Seeing Ad, Earning Points
    and Redeem Gift Cards
            </span>
        </div>
        
         <ul class="nav">
         
            <li class="selected li-item1">
                <a href="<?php echo ($nav_index); ?>">
                    <b class="nav_bd_left" <?php if($MODULE_NAME == 'Index'): ?>style="background: url(../Public/images/nav_hover_left.gif);"<?php endif; ?>></b>
                    <span class="nav_middle_bd" <?php if($MODULE_NAME == 'Index'): ?>style="background: url(../Public/images/nav_hover_middle.gif);"<?php endif; ?>><b class="li-item1" >Earn points</b></span>
                    <b class="nav_bd_right" <?php if($MODULE_NAME == 'Index'): ?>style=" background:url(../Public/images/nav_hover_right.gif);"<?php endif; ?>></b>
                </a>         
            </li>
            <li>
                <a href="<?php echo ($nav_coupons); ?>">
                    <b class="nav_bd_left" <?php if($MODULE_NAME == 'Coupon'): ?>style="background: url(../Public/images/nav_hover_left.gif);"<?php endif; ?>></b>
                    <span class="nav_middle_bd setWrap-item2" <?php if($MODULE_NAME == 'Coupon'): ?>style="background: url(../Public/images/nav_hover_middle.gif);"<?php endif; ?>><b class="li-item2">Redeem gift card</b></span>
                    <b class="nav_bd_right" <?php if($MODULE_NAME == 'Coupon'): ?>style=" background:url(../Public/images/nav_hover_right.gif);"<?php endif; ?>></b>
                </a>         
            </li>
            <li class="li-item3">
                <a href="###">
                    <b class="nav_bd_left" <?php if($MODULE_NAME == 'CouponFree'): ?>style="background: url(../Public/images/nav_hover_left.gif);"<?php endif; ?>></b>
                    <span class="nav_middle_bd" <?php if($MODULE_NAME == 'CouponFree'): ?>style="background: url(../Public/images/nav_hover_middle.gif);"<?php endif; ?>><b class="li-item3">Free coupons</b></span>
                    <b class="nav_bd_right" <?php if($MODULE_NAME == 'CouponFree'): ?>style=" background:url(../Public/images/nav_hover_right.gif);"<?php endif; ?>></b>
                </a>         
            </li>
            <li class="li-item4">
                <a href="####">
                    <b class="nav_bd_left" <?php if($MODULE_NAME == 'Help'): ?>style="background: url(../Public/images/nav_hover_left.gif);"<?php endif; ?>></b>
                    <span class="nav_middle_bd" <?php if($MODULE_NAME == 'Help'): ?>style="background: url(../Public/images/nav_hover_middle.gif);"<?php endif; ?>><b class="li-item4">Help</b></span>
                    <b class="nav_bd_right" <?php if($MODULE_NAME == 'Help'): ?>style=" background:url(../Public/images/nav_hover_right.gif);"<?php endif; ?>></b>
                </a>         
            </li>
            <li class="li-item5">
                <a href="####">
                    <b class="nav_bd_left" <?php if($MODULE_NAME == 'Web'): ?>style="background: url(../Public/images/nav_hover_left.gif);"<?php endif; ?>></b>
                    <span class="nav_middle_bd" <?php if($MODULE_NAME == 'Web'): ?>style="background: url(../Public/images/nav_hover_middle.gif);"<?php endif; ?>><b class="li-item5">c2earn website</b></span>
                    <b class="nav_bd_right" <?php if($MODULE_NAME == 'Web'): ?>style=" background:url(../Public/images/nav_hover_right.gif);"<?php endif; ?>></b>
                </a>         
            </li>
          </ul><!-- end:nav -->
    </div><!-- end:header -->


    <div id="content">
    	<div class="main_top">
        	<img class="set_icon1" src="../Public/images/sweet_icon.png" />
            <p class="hello-2 textShadow">Hello <?php echo ($userName); ?></p>
            <span class="please-2">Please make sure you answer the questions at the end of the ad.  
Then, press submit to earn the <?php echo ($video["point"]); ?> points. </span>
            <div class="bd_bottom"></div>      
        </div><!-- end:main_top -->
        
        <div class="main_bottom">
        	<div class="main_bottom_bf">
                <div class="main-Sidebar2"> 
                	<div class="setPo">
                        <!--
						<div class="sidebar2-text">
                            <span class="first-span">1. Excuse me, how much do you love the advertisements</span><br />
                            <span>(1-5 points, 1 = didn't like it very much, 5 = very like)</span>                  
                            <ul class="number-item">
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                            </ul>                           
                        </div>   
                        
                        <div class="barBottom">
                        	
                            
                            
                        </div>      -->  
						<div class="flvplayer">
							<object type="application/x-shockwave-flash" width="480" height="330" data="__ROOT__/Public/Uploads/video/flvplayer.swf?videoid=<?php echo ($goods["videoid"]); ?>&file=__ROOT__/Public/Uploads/video/<?php echo ($video["video_url"]); ?>&image=<?php echo ($goods["flv_img"]); ?>&flvtime=15&adbuffer_file=<?php echo ($goods["flv_img"]); ?>&autoStart=true&u=<?php echo ($userId); ?>&s=<?php echo ($s); ?>&id=<?php echo ($video["video_id"]); ?>" >
								<param name="movie" value="__ROOT__/Public/Uploads/video/flvplayer.swf?videoid=<?php echo ($goods["videoid"]); ?>&file=__ROOT__/Public/Uploads/video/<?php echo ($video["video_url"]); ?>&image=<?php echo ($goods["flv_img"]); ?>&flvtime=15&adbuffer_file=<?php echo ($goods["flv_img"]); ?>&autoStart=true&u=<?php echo ($userId); ?>&s=<?php echo ($s); ?>&id=<?php echo ($video["video_id"]); ?>" />
								<param name="quality" value="high" />
								<param name="wmode" value="transparent" />
								<param name="allowFullScreen" value="true" />
								<param name="allowScriptAccess" value="always"/>
								<embed src="__ROOT__/Public/Uploads/video/flvplayer.swf?videoid=<?php echo ($goods["videoid"]); ?>&file=__ROOT__/Public/Uploads/video/<?php echo ($video["video_url"]); ?>&image=<?php echo ($goods["flv_img"]); ?>&flvtime=15&adbuffer_file=<?php echo ($goods["flv_img"]); ?>&adstart_file=video1.jpg&adend_file=video1.jpg&autoStart=true&u=<?php echo ($userId); ?>&s=<?php echo ($s); ?>&id=<?php echo ($video["video_id"]); ?>" wmode="transparent" allowFullScreen="true" allowScriptAccess="always"  quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="352" height="352" name="flv_play" id="flv_play"></embed>
							</object>	
						</div>
						
                    </div>  
				
               </div>
           </div>
        </div><!-- end:main_bottom -->
      
          
        <div class="main_bottom_3">
        
        </div><!-- end:main_bottom_2 -->
    </div><!-- end:content-->

<!--
<form action="__URL__/action" method="post">
<input type="hidden" name="video_id" value="<?php echo ($video["video_id"]); ?>" />
<input type="hidden" name="u_id" value="<?php echo ($u_id); ?>" />
<input type="submit" value="complete" />
</form>
-->
    <div id="footer">
  
        <ul class="footer_nav">
            <li><a href="###">Users Agreement</a></li> |
            <li><a href="###">Privacy Policy</a></li> |
            <li><a href="###"> Contact  Us</a></li>
        </ul>
        <p>Copyright © 2011 c2earn Multimedia.  All rights reserved. </p>
    </div><!-- end:footer-->
    
</body>
<script type="text/javascript" src="../Public/js/jquery-1.3.min.js"></script>
<script type="text/javascript" src="../Public/js/nav-hover.js"></script>

</html>